package com.wolf.gulimall.order.feign;

import com.wolf.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 购物车服务远程调用
 */
@FeignClient("gulimall-cart")
public interface CartFeignService {

    /**
     * 查询用户购物车详情信息
     *
     * @return 购物车详情信息
     */
    @GetMapping("/currentUserCartItems")
    List<OrderItemVo> getCurrentUserCartItems();
}
